{include file="public/header" /}
<body>
<header class="all-header">
    <p class="all-header-item">
        <i class="layui-icon layui-icon-left"  onclick="window.history.back(-1)"></i>
    </p>
    <p class="all-header-item">零零诉</p>
</header>
    <div class="ac-top"></div>
    <div class="ac-layer-mesg">
        <div class="ac-layer-img">
            <div class="ac-img-inner">
                <a href="PersonInfo.html"><img src="__STATIC__/plugs/weixin/img/img10.png" alt="加载失败"></a>
            </div>
        </div>
        <div class="ac-layer-detail">
            <h3 class="text-bolder">{$data|mb_substr=0,1,'utf-8'|raw}律师</h3>
            <p class="text-small">众多律师承接此案，请阐述您的优势，可提高承接此案的成功率！(可选填)</p>
        </div>
    </div>
    <form method="post" id="from">
        <div class="layui-container">
            <div class="layui-row margin-top">
                <div class="ac-layer-grace">
                    <span class="color-white">观点优势</span>
                </div>
                <textarea class="layer-detail" name="guandian" placeholder="阐述你对此案的观点，限制100字" maxlength="100rem"></textarea>
            </div>

            <div class="layui-row margin-top">
                <div class="ac-layer-grace">
                    <span class="color-white">沟通优势</span>
                </div>
                <textarea class="layer-detail" name="goutong" placeholder="阐述你对此案的观点，限制100字" maxlength="100rem"></textarea>
            </div>

            <div class="layui-row margin-top">
                <div class="ac-layer-grace">
                    <span class="color-white">对债务人的了解优势</span>
                </div>
                <textarea class="layer-detail" name="liaojie" placeholder="阐述你对此案的观点，限制100字" maxlength="100rem"></textarea>
            </div>

            <div class="layui-row margin-top">
                <div class="ac-layer-grace">
                    <span class="color-white">服务报价</span>
                </div>
                <textarea class="layer-detaill" name="fuwu" placeholder="请对此服务报价，限制50字" maxlength="50rem"></textarea>
            </div>
        </div>
        <input type="hidden" name="username" value="{$data}">
        <input type="hidden" name="name" value="{$name}">
        <input type="hidden" name="uid" value="{$lsid}">
        <input type="hidden" name="caseid" value="{$caseid}">
        <button class="shop-btn bg-yellow" type="submit" class="order-btn">提交申请</button>
        <div class="ac-bottom"></div>
    </form>
</body>
<script type="text/javascript">
    layui.use(['form'],function () {
        var form = layui.form;
        $("#from").submit(function (e) {
            e.preventDefault();
            var list = $(this).serialize();
            $.post("{:url('accept_case/add')}",list,function (ret) {
                if(ret.code == 1){
                      layer.msg(ret.msg);
                      setTimeout(function () {
                          location.reload();
                      },1500)
                }else{
                    layer.msg(ret.msg);
                }
            });
        });
        form.render();
    })
</script>
</html>